CFLAGS = -fpic -coverage -lm -std=c99 -Wall

tarantula: rngs.o dominion.o GameStateSanitizer.o tarantula.c
	gcc -o tarantula -g tarantula.c dominion.o rngs.o GameStateSanitizer.o $(CFLAGS)

rngs.o: rngs.h rngs.c
	gcc -c rngs.c -g  $(CFLAGS)

dominion.o: dominion.h dominion.c rngs.o
	gcc -c dominion.c -g  $(CFLAGS)

GameStateSanitizer.o: dominion.h GameStateSanitizer.h GameStateSanitizer.c
	gcc -c GameStateSanitizer.c -g $(CFLAGS)
	

clean:
	rm -f *.o *.gcov *.gcda *.gcno *.so *.out tarantula
